package com.example.exception;

import com.example.pojo.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class allException {
    @ExceptionHandler(Exception.class)
    public Result exception(Exception ex) {
        ex.printStackTrace();
        return Result.error("执行失败请联系管理员~");

    }
}
